home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 023 / ver30 / sys / cpm86 / ttyio.c < prev   
C/C++ Source or Header  |  1995-03-17  |  614b  |  55 lines

  1. /*
  2.  * Name:    MicroEMACS
  3.  *        CP/M-86 terminal I/O.
  4.  * Version:    29
  5.  * Last edit:    05-Feb-86
  6.  * By:        rex::conroy
  7.  *        decvax!decwrl!dec-rhea!dec-rex!conroy
  8.  */
  9. #include    "def.h"
  10.  
  11. #include    <bdos.h>
  12.  
  13. int    nrow;                /* Terminal size, rows.        */
  14. int    ncol;                /* Terminal size, columns.    */
  15.  
  16. /*
  17.  * Set up terminal.
  18.  * Almost no operation in CP/M-86.
  19.  */
  20. ttopen()
  21. {
  22.     nrow = NROW;
  23.     ncol = NCOL;
  24. }
  25.  
  26. /*
  27.  * No operation in CP/M-86.
  28.  */
  29. ttclose()
  30. {
  31. }
  32.  
  33. /*
  34.  * Write character.
  35.  */
  36. ttputc(c)
  37. {
  38.     bios(BCONOUT, c, 0);
  39. }
  40.  
  41. /*
  42.  * No operation on CP/M-86.
  43.  */
  44. ttflush()
  45. {
  46. }
  47.  
  48. /*
  49.  * Read character.
  50.  */
  51. ttgetc()
  52. {
  53.     return (biosb(BCONIN, 0, 0));
  54. }
  55.